package data.impl;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DataAccessObject {
	private static DataAccessObject dao = new DataAccessObject();
	private Connection connection = null;
	
	private DataAccessObject() {
		try {
			Class.forName("org.postgresql.Driver");
			connection = DriverManager.getConnection(
			   "jdbc:postgresql://127.0.0.1:5433/postgres","postgres", "fh");
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	public static DataAccessObject getInstance() {
		return dao;
	}
	public TravelImpl getTravel(Searchparam[] params) {
		return null;
		
	}
}
